package com.shop.front.dao.commission;

import com.shop.domain.commission.CommissionRole;
import com.shop.jpa.BaseDao;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CommissionRoleDao extends BaseDao<CommissionRole, Long> {

    @Query(value = "from CommissionRole where status = 1 order by code desc")
    List<CommissionRole> findList();

}
